package User;


import book.BookList;
import operation.IOperation;

import java.awt.*;

public  abstract class user {
    protected String name;
    protected IOperation[] array;//接口数组
    public user(String name) {
        this.name = name;
    }
    public  abstract int menu();
    public void doWork(int Choice, BookList bookList){
        //array[Choice].work(bookList);
        IOperation iOperation=array[Choice];
        iOperation.work(bookList);
    }

}
